﻿namespace Aspire.Dashboard;

public class ShortName
{
    public static string Application(string application)
    {
		try
		{
            var endIndex = application.IndexOf('-', application.IndexOf('-') + 1);
            return application.Substring(0, endIndex);
        }
		catch (Exception)
		{
            return application;
		}
    }
}
